home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / challenge / 12.08-Aug96 / MazeTestCode.sit / MazeTestCode ƒ / Maze.c next >
C/C++ Source or Header  |  1996-07-21  |  730b  |  26 lines

  1. #include "Maze.h"
  2.  
  3. Boolean Maze(
  4.     long xPos,                         /* x component of initial position */
  5.     long yPos,                         /* y component of initial position */
  6.     long zPos,                         /* z component of initial position */
  7.     long xSize,                         /* size of maze in x dimension */
  8.     long ySize,                         /* size of maze in y dimension */
  9.     long zSize,                         /* size of maze in z dimension */
  10.     MoveProc MakeAMove,                /* callback to attempt a move */
  11.     char *mapStorage                /* one byte for each valid position in the maze */
  12. )
  13. {
  14.     long newX,newY,newZ;
  15.     Boolean solved;
  16.  
  17. /* Your code goes here */
  18. /*
  19.  * You will need to invoke the callback something like this:
  20.     solved = (*MakeAMove)(1,0,0,&newX,&newY,&newZ);
  21.     
  22.  * And when you find the exit ...
  23.  */
  24.     return solved;
  25. }
  26.